package com.sunyard.pcc.dal.mapper;

import com.sunyard.pcc.dal.model.SysMenuDO;
import com.sunyard.pcc.dal.query.SysMenuQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * MyBatis Mapper for SysMenu.
 */
@Mapper
@Repository
public interface SysMenuMapper {

    /**
     * query count by query condition.
     */
    int countByQuery(SysMenuQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysMenuQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysMenuDO record);

    /**
     * insert selective.
     */
    int insertSelective(SysMenuDO record);

    /**
     * select by query condition.
     */
    List<SysMenuDO> selectByQuery(SysMenuQuery query);

    /**
     * select by primary key.
     */
    SysMenuDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") SysMenuDO record, @Param("query") SysMenuQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") SysMenuDO record, @Param("query") SysMenuQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysMenuDO record);
}